home *** CD-ROM | disk | FTP | other *** search
- On 29-Gen-98, Jens Vang Petersen wrote: Looooooooong Samples
-
- >Hello..
-
- Hi!
-
- >A request to all of you excelent sound-extension-people. Can any of you
- >write a sample-replayer into your extension (or even a simple AMOS-
- >procedure) that can handle long raw samples (+100.000 bytes) the only
- >way I can find to replay those bloddy things is to call an external
- >player like Play16.. Gah...
-
-
- You can try this one.... it's a double buffered replayer wich use the GUI
- Extension asynchronous commands for play&load datas at the same time :)
-
- '**
- '** $VER: SamPLay 1.0 (31-01-98)
- '**
- '** Asynchronous-Double buffered sample replayer
- '**
- '** © Copyright 1998 Pietro Ghizzoni - Dairymen Soft
- '** FreeWare
- '**
-
-
- Reserve As Chip Work 10,10000
- Reserve As Chip Work 11,10000
- F$=Fsel$("**") : Open In 1,F$ : L=Lof(1) : Close
-
- H=Tcp F Open(1,F$)
- D=Tcp Get(1,Start(10),10000) : D=Tcp Get(1,Start(11),10000)
- Sam Raw %1111,Start(10),10000,10000 : C=20000 : BUF=10 : BUF2=11
-
- Do
-
- Repeat : Until Sam Swapped(1)
- If C>L Then Goto QUIT
-
- Sam Swap %1111 To Start(BUF2),10000 : A=Tcp Read(1,Start(BUF),10000)
- C=C+10000 : Swap BUF,BUF2
-
- Loop
-
- QUIT:
-
- Tcp Close : End
-
-
- --
-
-
- Bye!
-
-
- !!!
- o o
- +-----------------------------oOO-(_)-OOo----------------------------+
- | |
- | Pietro Ghizzoni - Dairymen Soft __ /// Amiga 12OO |
- | E-Mail: ghizzo@agonet.it \\\/// 'O3O 5OMhz |
- | Team AMIGA \/// 18MB - CD4x |
- | |
- | Amos Professional Team Coordinator AMIGA RULEZ!! |
- | |
- +--------------------------------------------------------------------+
-
-
-